package com.miaoxie.forum.module.auth.shared.exception;

/**
 * Created by miaoxie on 2017/3/28.
 */
public interface IException {
    /**
     *
     *  Created on 2014-02-05 
     * <p>Description:[获取error Code]</p>
     * @author:苗勰
     * @update:[日期YYYY-MM-DD] [更改人姓名]
     * @return String .
     */
    String getErrorCode();

    /**
     *
     *  Created on 2014-02-05 
     * <p>Description:[获取异常信息]</p>
     * @author:苗勰
     * @update:[日期YYYY-MM-DD] [更改人姓名]
     * @return String .
     */
    String getNativeMessage();

    /**
     *
     *  Created on 2014-02-05 
     * <p>Description:[设置 error arguments]</p>
     * @author:苗勰
     * @update:[日期YYYY-MM-DD] [更改人姓名]
     * @return void .
     */
    void setErrorArguments(Object... objects);

    /**
     *
     *  Created on 2014-02-05 
     * <p>Description:[获取 error arguments]</p>
     * @author:苗勰
     * @update:[日期YYYY-MM-DD] [更改人姓名]
     * @return Object[] .
     */
    Object[] getErrorArguments();
}
